-- GENERATED SPELL FOR [Bonesunder] --


function spell0_27006(pUnit, Event) --@Bone Crack,n/a--
pUnit:FullCastSpellOnTarget(52080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27006', 23500, 1)
end

function Sorts_27006(pUnit, Event)
local choix_sorts_27006 = math.random(0, 0)
if choix_sorts_27006 == 0 then
pUnit:RegisterEvent('spell0_27006', 1, 1)
end
end

function mob27006_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27006', math.random(1500, 3000), 1)
end

function mob27006_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27006_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27006_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27006, 1, 'mob27006_Action')
RegisterUnitEvent(27006, 2, 'mob27006_Leave')
RegisterUnitEvent(27006, 3, 'mob27006_Kill')
RegisterUnitEvent(27006, 4, 'mob27006_Die')
